using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._EditingTools._Conflation
{
    /// <summary>
    /// <para>Generate Rubbersheet Links</para>
    /// <para>Finds where the source line features spatially match the target line features and generates lines representing links from source locations to corresponding target locations for rubbersheeting.</para>
    /// <para>查找源线要素在空间上与目标线要素匹配的位置，并生成表示从源位置到相应目标位置的链接的线，以便进行橡皮板。</para>
    /// </summary>    
    [DisplayName("Generate Rubbersheet Links")]
    public class GenerateRubbersheetLinks : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateRubbersheetLinks()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_source_features">
        /// <para>Source Features</para>
        /// <para>Line features as source features for generating rubbersheet links. All links start at source features.</para>
        /// <para>线要素作为生成橡皮板链接的源要素。所有链接都从源要素开始。</para>
        /// </param>
        /// <param name="_target_features">
        /// <para>Target Features</para>
        /// <para>Line features as target features for generating rubbersheet links. All links end at matched target features.</para>
        /// <para>线要素作为生成橡胶板链接的目标要素。所有链接都以匹配的目标要素结束。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>Output feature class containing lines representing regular rubbersheet links.</para>
        /// <para>输出要素类，其中包含表示常规橡胶板链接的线。</para>
        /// </param>
        /// <param name="_search_distance">
        /// <para>Search Distance</para>
        /// <para>The distance used to search for match candidates. A distance must be specified and it must be greater than zero. You can choose a preferred unit; the default is the feature unit.</para>
        /// <para>用于搜索匹配候选项的距离。必须指定距离，并且该距离必须大于零。您可以选择首选单位;默认值为要素单位。</para>
        /// </param>
        public GenerateRubbersheetLinks(object _source_features, object _target_features, object _out_feature_class, string? _search_distance)
        {
            this._source_features = _source_features;
            this._target_features = _target_features;
            this._out_feature_class = _out_feature_class;
            this._search_distance = _search_distance;
        }
        public override string ToolboxName => "Editing Tools";

        public override string ToolName => "Generate Rubbersheet Links";

        public override string CallName => "edit.GenerateRubbersheetLinks";

        public override List<string> AcceptEnvironments => ["extent", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_source_features, _target_features, _out_feature_class, _search_distance, _match_fields, _out_match_table, _out_point_feature_class];

        /// <summary>
        /// <para>Source Features</para>
        /// <para>Line features as source features for generating rubbersheet links. All links start at source features.</para>
        /// <para>线要素作为生成橡皮板链接的源要素。所有链接都从源要素开始。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Source Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _source_features { get; set; }


        /// <summary>
        /// <para>Target Features</para>
        /// <para>Line features as target features for generating rubbersheet links. All links end at matched target features.</para>
        /// <para>线要素作为生成橡胶板链接的目标要素。所有链接都以匹配的目标要素结束。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>Output feature class containing lines representing regular rubbersheet links.</para>
        /// <para>输出要素类，其中包含表示常规橡胶板链接的线。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Search Distance</para>
        /// <para>The distance used to search for match candidates. A distance must be specified and it must be greater than zero. You can choose a preferred unit; the default is the feature unit.</para>
        /// <para>用于搜索匹配候选项的距离。必须指定距离，并且该距离必须大于零。您可以选择首选单位;默认值为要素单位。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Search Distance")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _search_distance { get; set; }


        /// <summary>
        /// <para>Match Fields</para>
        /// <para>Lists of fields from source and target features. If specified, each pair of fields are checked for match candidates to help determine the right match.</para>
        /// <para>源要素和目标要素中的字段列表。如果指定，则会检查每对字段的匹配候选项，以帮助确定正确的匹配项。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Match Fields")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _match_fields { get; set; } = null;


        /// <summary>
        /// <para>Output Match Table</para>
        /// <para>The output table containing complete feature matching information.</para>
        /// <para>包含完整要素匹配信息的输出表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Match Table")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_match_table { get; set; } = null;


        /// <summary>
        /// <para>Identity Links</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Identity Links")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_point_feature_class { get; set; }


        public GenerateRubbersheetLinks SetEnv(object extent = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(extent: extent, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}